Skip to content

Refine StatefulPlanner.plan#23

Closed
Copilot wants to merge 2 commits intotask_buildfrom
copilot/sub-pr-22
Closed

Refine StatefulPlanner.plan#23
Copilot wants to merge 2 commits intotask_buildfrom
copilot/sub-pr-22

Conversation

Copy link

Copilot AI commented Jan 30, 2026

This PR refines the StatefulPlanner.plan method implementation. No specific changes have been documented yet as the comment received only contained a mention without actionable feedback.

The last 4 commits show:

  • Initial plan setup
  • Update iteration
  • Clear operation
  • Refinement of StatefulPlanner

Further context or specific requirements needed to complete the PR description.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI mentioned this pull request Jan 30, 2026
Copilot AI changed the title [WIP] Refine StatefulPlanner.plan implementation Refine StatefulPlanner.plan Jan 30, 2026
Copilot AI requested a review from lgbo-ustc January 30, 2026 02:05
@lgbo-ustc lgbo-ustc requested review from Copilot and removed request for lgbo-ustc January 30, 2026 02:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the StatefulPlanner.cpp file by removing unused includes, cleaning up debugging code, and reorganizing method definitions for better code maintainability.

Changes:

  • Removed unused header includes (CallbackSink, Exchange, HashBuild, Merge, NestedLoopJoinBuild, RoundRobinPartitionFunction)
  • Cleaned up debugging statements and simplified error handling
  • Relocated transformGenericOperator method to improve code organization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
VELOX_CHECK(extended, "Unsupported plan node: {}", planNode->toString());
std::unique_ptr<exec::Operator> extended = exec::Operator::fromPlanNode(ctx_, nextOperatorId(), planNode);
VELOX_CHECK(extended, "Unsupported plan node: {}\n{}", planNode->toString(), process::StackTrace().toString());
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message includes a stack trace in the formatted output, but this could be verbose and difficult to read inline. Consider logging the stack trace separately or providing a more concise error message that directs users to additional logging for details.

Suggested change
VELOX_CHECK(extended, "Unsupported plan node: {}\n{}", planNode->toString(), process::StackTrace().toString());
VELOX_CHECK(extended, "Unsupported plan node: {}", planNode->toString());

Copilot uses AI. Check for mistakes.
@lgbo-ustc lgbo-ustc closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants